#include <iostream>
#include "Coordinate.h"
using namespace std;
int main() {
    Coordinate cor1(1,3);
    Coordinate cor2(3,3);
    cout<<cor1.getX()<<":"<<cor1.getY()<<"\n";
    //++运算符重载
    ++cor1;
    cout<<(cor1++).getX()<<"\n";
    cout<<(cor1++).getY()<<"\n";
    cout<<cor1.getX()<<":"<<cor1.getY()<<"\n";
    -cor2;
    cout<<cor2.getX()<<":"<<cor2.getY()<<"\n";

    cout<<cor2.getX()<<":"<<cor2.getY()<<"\n";
    Coordinate cor3 = cor1+cor2;
    cout<<"cor1 + cor2:"<<cor1<<cor2<<cor3;
    cout<<cor1[0]<<endl;
    return 0;
}